package com.taotao.jdk;

/**
 * @Author: wangjin
 * @CreateTime: 2022-07-03  12:20
 */
public class Test01 {
    public static void main(String[] args) {
        MessageObServable messageObServable=new MessageObServable();
        messageObServable.addObserver(new JdkMessageObServable());
        messageObServable.addObserver(new JdkWeChatObserver());
        messageObServable.notifyObservers("hello");
    }
}
